<template>
  <div>
    <div class="container container-top">
      <el-row style="height:500px;" >
        <div style="margin:80px 20%;width:550px;">
          <div style="height:275px;">
            <img src="/static/img/timg.jpg" style="vertical-align: middle;"  />
          </div>
          <div style="height:80px;text-align: center;">
            <el-button
                    type="primary"
                    class="btn-default"
                    @click="selectSingleLocalPerson"
                    size="small"
                  >单选人员</el-button>
                  <el-button
                    type="primary"
                    class="btn-default"
                    @click="selectMultiLocalPerson"
                    size="small"
                  >多选人员</el-button>
          </div>
          <div style="height:80px;text-align: center;">
            <el-button
                    type="primary"
                    class="btn-default"
                    @click="selectSingleLocalDept"
                    size="small"
                  >单选部门</el-button>
          </div>
        </div>
      </el-row>
    </div>
  </div>
</template>

<script>
  export default {
    components:{
    },
    data(){
      return {
        brand:[
          {name:'lang.nofindPage'}
        ]
      }
    },
    methods: {
        selectMultiLocalPerson () {
            console.log("selectMultiLocalPerson....");
            // window.parent.postMessage( '{"itemPrincipal": "P622400", "itemPrincipalDesc": "潘瑞辉" }, { "itemPrincipal": "PXMWCJA", "itemPrincipalDesc": "曹纪强" }, { "itemPrincipal": "P206192", "itemPrincipalDesc": "叶亮"}',"*");
            window.parent.postMessage( ["P622400;PXMWCJA;P206192","潘瑞辉;曹纪强;叶亮"],"*");
        },
        selectSingleLocalPerson () {
            console.log("selectSingleLocalPerson....");
            // window.parent.postMessage( '{"itemPrincipal": "P622400", "itemPrincipalDesc": "潘瑞辉" }, { "itemPrincipal": "PXMWCJA", "itemPrincipalDesc": "曹纪强" }, { "itemPrincipal": "P206192", "itemPrincipalDesc": "叶亮"}',"*");
            window.parent.postMessage( ["P622400","潘瑞辉"],"*");
        },
        selectSingleLocalDept () {
            console.log("selectSingleLocalDept....");
            // window.parent.postMessage( '{"itemPrincipal": "P622400", "itemPrincipalDesc": "潘瑞辉" }, { "itemPrincipal": "PXMWCJA", "itemPrincipalDesc": "曹纪强" }, { "itemPrincipal": "P206192", "itemPrincipalDesc": "叶亮"}',"*");
            window.parent.postMessage( ["604394", "32062500", "4285\\4700\\4726\\604394", "中国广核集团\\中广核工程有限公司\\调试中心\\调试采购分部", "", "调试采购分部", "CNPEC\\SUE\\SPB", "001030"],"*");
        }
    }
  }
</script>

<style>

</style>
